/*
 *  Copyright (c) 2024 Cshoo Org. All Rights Reserved.
 *
 *  author:杨翼
 *  date: 2025年4月28日
 *  description:config组件后端js，用于渲染数据
 */

use(function () {
    let environments = null;
    let firstEnvironment = null;
    let environmentNode = resource.getChild('environment');
    if (environmentNode) {
        environments = environmentNode.getChildren();
        if (environments && environments.length > 0) {
            firstEnvironment = environments[0];
        }
    }
    return {
        environments: environments,
        firstEnvironment: firstEnvironment
    }
});